package com.juntuo.mapper;

import com.juntuo.entity.Device;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface DeviceMapper extends Mapper<Device> {

   void updateByDeviceIdSelective(Device device);
    List<Map<String,Object>> selectByParams(@Param("name") String name, @Param("province") String province, @Param("city") String city,
                                            @Param("district") String district, @Param("company_name") String companyName, @Param("park_number") String parkNumber);

    List<Map<String,Object>> selectNearByDevices(@Param("minlat") Double minlat,@Param("maxlat") Double maxlat,
                                                 @Param("minlng") Double minlng,@Param("maxlng") Double maxlng,@Param("type") int type);
}